home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 4 / United Public Domain Gold 4.iso / tbag / tb034.dms / tb034.adf / Doc-Files / DiskOpti.DOC < prev    next >
Text File  |  1989-08-02  |  5KB  |  115 lines

  1. DiskOpti
  2.  
  3. The purpose of this program is to copy an entire disk in a way which will
  4. allow the files to be read faster by rearranging the data blocks. When the
  5. system writes files on a disk, chances are the data blocks allocated for this
  6. file won't be contiguous and be spread all over the disk. This is the reason
  7. why we hear the disk drive's head go back and forth when the file is reread.
  8. It then takes more time to read the file and adds wear and tear to the disk
  9. drive mechanism. This program will copy all the files on a disk making sure
  10. that the data blocks for each file are consecutive. Depending on the number
  11. of directories and files on a disk, the process can take up to 6 minutes to
  12. complete.
  13.  
  14. Usage of the program is straight forward, place the disk to be optimized in
  15. one disk drive and a formatted disk in another drive, then select the
  16. appropriate menu selection, for example df0: -> df1:, this means the source
  17. disk is df0: and the destination disk is in df1:. Then  wait until the
  18. process is complete.
  19.  
  20. In the Project menu you will find the List and the Save options;
  21.  
  22. List: Will make a list of all files, directories and headers of the source
  23.       disk. No copying is done.
  24. Save: Save the list either on the prt: device or on a file.
  25.  
  26. You can also do a save after the disk as been optimized.
  27.  
  28. The list is divided in 8 columns:
  29.  
  30.   1- Header block number of the file or directory.
  31.   2- Root block number.
  32.   3- Block number of a file with the same hash code of the current file.
  33.   4- If the file has more than one header block (uses more than 72 blocks),
  34.      block number where the block list continues.
  35.   5- File or directory header block position in the parent directory
  36.      (between 24 and 308).
  37.   6- Total number of blocks used for this file, including the header block.
  38.      This number is always 1 for a directory.
  39.   7- 0: if its a directory or 1: for a file.
  40.   8- Name.
  41.  
  42. All this information can be useful for those of you who like to take a look
  43. at the data directly on the disk's blocks.
  44.  
  45. Try this test to check the improvement of an optimized disk.
  46.   1- Select a disk that has a number of drawers with icons.
  47.   2- Open all the drawers after you make sure the write protect tab of the
  48.      disk is off (very important).
  49.   3- Do the same with the optimized copy of the disk.
  50.   4- Now measure the time it takes for the icons to appear when you open the
  51.      disk icon of the original disk.
  52.   5- Do the same for the optimized disk.
  53.   6- Compare both timings. The more icons are on a disk, the more the gain.
  54.      Some times as much as 100%.
  55.  
  56. This program works either from the Workbench or the CLI. It is entirely
  57. written in assembler for faster operation and smaller size. You can also use
  58. the included DiskView program to look at the position of the file and
  59. directory blocks on the disk.
  60.  
  61. Here are some benchmarks done with different optimizing programs and the
  62. DiskOpti program. The AmigoTimes 1.1 disk was used for the test.
  63.  
  64. 1- Original disk.
  65. 2- Copied with Disk Mechanic's Tune_Up using the CLI FILE COMPLETE option.
  66. 3- Copied with Disk Mechanic's Tune_Up using the WB DRAWER COMPLETE option.
  67. 4- Copied with the "copy df0: to df1: all" command.
  68. 5- Copied with DiskOpti.
  69.  
  70. Tune_Up is copyright Lake Forest Logic Inc.
  71. I also tried B.A.D. (BAD.DEMO) by Centaur Software Inc., but the program
  72. informed me the disk could be corrupt, and it turned out it was the case.
  73.  
  74.                         -1-     -2-     -3-     -4-     -5-
  75.  
  76. Copying time                     65      37     8.5     5.1     in minutes
  77.  
  78. Time to open
  79. disk icons      (10)    9.8    12.8     4.2    10.3     4.4     in seconds
  80.  
  81. Virus_Killers   (2)     2.9     3.2     2.1     2.1     2.3
  82.  
  83. Programs        (9)    10.6     ***     4.7    10.7     4.7
  84.  
  85. Pictures        (3)     3.3     3.6     2.5     4.2     2.6
  86.  
  87. Terminal        (5)     5.1     ***     2.9     6.3     2.9
  88.  
  89. Demos           (2)     2.9     3.9     2.2     4.2     2.1
  90.  
  91. Tools           (8)     6.6     7.7     3.7     7.6     4.5
  92.  
  93. "Dir opt a" command    20.6     ***    24.5      38    28.3
  94.  
  95. Load ArkDemo           17.6    26.7    25.1       *    18.8
  96.  
  97. Load MacAttak.pic      14.7    14.5    16.4    17.1    14.3
  98.  
  99. You read correctly, 65 and 37 are in minutes....
  100. ***: Guru...
  101. *:   Did not work.
  102.  
  103. Conclusion:
  104. I still have to work on the program to make the Dir command faster while
  105. keeping the other timings the same. For the rest I will let you make your own
  106. conclusions.
  107.  
  108. All comments, questions and suggestions are welcome.
  109.  
  110.  
  111.                            Claude Abraham
  112.                            1999 Place Jules Léger
  113.                            St-Bruno, QC, Canada
  114.                            J3V 5M6
  115.